package com.hospital.service;

import com.hospital.mapper.UsersMapper;
import com.hospital.pojo.Users;
import com.hospital.pojo.UsersExample;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Create by Administrator on 2018/12/14 19:43
 */

@Service
public class UsersServiceImpl implements  UsersService {

	@Autowired
	private UsersMapper usersMapper;

	@Override
	public List<Users> list() {
		UsersExample example = new UsersExample();
		List<Users> users = usersMapper.selectByExample(example);
		return users;
	}
}
